<script setup>
import Aside from './aside.vue'
import Head from './head.vue'
</script>

<template>
 <div class="common-layout">
    <el-container>
     <Aside />
      <el-container class="head-and-main">
        <Head />
        <el-main>
          <el-scrollbar >
            <RouterView />
          </el-scrollbar>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="scss" scoped>
.head-and-main {
  //把水平改成垂直
  height: 100vh;
 flex-direction: column;
}
.el-main{
  background-color: #f4f4f5;
  padding-right: 0;
}
</style>